package edu.hit;

import java.util.HashMap;
import java.util.Map;

public class Storage {

    private static Map<String,Data> map = new HashMap<>();

    private Storage(){}

    public static Data get(String key){
        if(map.get(key) != null)
            return map.get(key);
        return null;
    }

    public static void set(String key, Data data){
        map.put(key,data);
    }

    public static void remove(String key){ map.remove(key);}
}
